import { Random } from 'mockjs';

var Mock = require('mockjs')
export default [
    {
        url: "/artcat/list",
        method: "get",
        response: () => {
            return {
                "code": 200,
                "msg": "操作成功",
                "data": [
                    {
                        "acName": "后端技术",
                        "acKeywords": "安卓,Android,苹果,Iphone,移动开发,手机,平板",
                        "acDescript": "移动开发也称为手机开发，或叫做移动互联网开发。是指以手机、PDA、UMPC等便携终端为基础，进行相应的开发工作，由于这些随身设备基本都采用无线上网的方式，因此，业内也称作为无线开发。",
                        "acPid": "0",
                        "acSort": 1,
                        "acShow": 1,
                        "id": "1",
                        "children": [
                            {
                                "acName": "PHP开发技术",
                                "acKeywords": "",
                                "acDescript": "",
                                "acPid": "1",
                                "acPidPath": "1",
                                "acSort": 0,
                                "acShow": 0,
                                "id": "1-1"
                            },
                            {
                                "acName": "JAVA开发技术",
                                "acKeywords": "Java,面向对象,编程语言,桌面应用,Web应用,分布式,嵌入式",
                                "acDescript": "Java是一门面向对象编程语言Java语言作为静态面向对象编程语言的代表，极好地实现了面向对象理论，允许程序员以优雅的思维方式进行复杂的编程, Java具有简单性、面向对象、分布式、健壮性、安全性、平台独立与可移植性、多线程、动态性等特点",
                                "acPid": "1",
                                "acPidPath": "1",
                                "acSort": 1,
                                "acShow": 1,
                                "id": "1-2"
                            },
                        ]
                    },
                    {
                        "acName": "前端技术",
                        "acKeywords": "1",
                        "acDescript": "1",
                        "acPid": "0",
                        "acSort": 2,
                        "acShow": 1,
                        "id": "2",
                        "children": [
                            {
                                "acName": "Vue开发技术",
                                "acKeywords": "Nodejs",
                                "acDescript": "Nodejs",
                                "acPid": "2",
                                "acSort": 0,
                                "acShow": 1,
                                "id": "2-1",
                            },
                            {
                                "acName": "React开发技术",
                                "acKeywords": "VUE,vue框架,vue-admin-beautiful",
                                "acDescript": "vue-admin-beautiful框架使用教程",
                                "acPid": "2",
                                "acSort": 1,
                                "acShow": 1,
                                "id": "2-2",
                            }
                        ]
                    }
                ]
            }
        }
    },
    {
        url: "/artcat/detail",
        method: "get",
        response: () => {
            return {
                "code": 200,
                "msg": "操作成功",
                "data": {
                    "acName": "后端技术",
                    "acKeywords": "安卓,Android,苹果,Iphone,移动开发,手机,平板",
                    "acDescript": "移动开发也称为手机开发，或叫做移动互联网开发。是指以手机、PDA、UMPC等便携终端为基础，进行相应的开发工作，由于这些随身设备基本都采用无线上网的方式，因此，业内也称作为无线开发。",
                    "acPid": "2-1",
                    "acPidPath": "2/2-1",
                    "acSort": 1,
                    "acShow": 1,
                    "id": "1"
                }
            }
        }
    }
];